package com.yimi.policyservice.client;

import com.yimi.policyservice.dto.client.LoginPram;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "login", url = "${rsyLogin.url}")
public interface LoginClient {
    @RequestMapping(value = "/admin/login", method = RequestMethod.POST)
    String login(LoginPram param);

    @RequestMapping(value = "/admin/logout", method = RequestMethod.POST)
    String logout(@RequestHeader("Token") String token);

}
